package com.guaju.yueshangLife.bean;

import java.util.List;

public class AddComment {

    /**
     * code : 200
     * msg : ok
     * data : {"customer":{"id":1,"name":"guest_9VfJwXS3Fb8PT20G","avatar":null,"group":0,"created_at":"2019-10-19 14:20:21"},"content":"好评","score":"5.0","level":"0","images":["https://static.nfangxu.com/images/bg-07.jpg"],"product":{"name":"Ace连帽卫衣","cover":{"host":"https://static.nfangxu.com/","path":"images/bg-07.jpg"},"attribute":["橙色","L"]}}
     */

    private int code;
    private String msg;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * customer : {"id":1,"name":"guest_9VfJwXS3Fb8PT20G","avatar":null,"group":0,"created_at":"2019-10-19 14:20:21"}
         * content : 好评
         * score : 5.0
         * level : 0
         * images : ["https://static.nfangxu.com/images/bg-07.jpg"]
         * product : {"name":"Ace连帽卫衣","cover":{"host":"https://static.nfangxu.com/","path":"images/bg-07.jpg"},"attribute":["橙色","L"]}
         */

        private CustomerBean customer;
        private String content;
        private String score;
        private String level;
        private ProductBean product;
        private List<String> images;

        public CustomerBean getCustomer() {
            return customer;
        }

        public void setCustomer(CustomerBean customer) {
            this.customer = customer;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getScore() {
            return score;
        }

        public void setScore(String score) {
            this.score = score;
        }

        public String getLevel() {
            return level;
        }

        public void setLevel(String level) {
            this.level = level;
        }

        public ProductBean getProduct() {
            return product;
        }

        public void setProduct(ProductBean product) {
            this.product = product;
        }

        public List<String> getImages() {
            return images;
        }

        public void setImages(List<String> images) {
            this.images = images;
        }

        public static class CustomerBean {
            /**
             * id : 1
             * name : guest_9VfJwXS3Fb8PT20G
             * avatar : null
             * group : 0
             * created_at : 2019-10-19 14:20:21
             */

            private int id;
            private String name;
            private Object avatar;
            private int group;
            private String created_at;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public Object getAvatar() {
                return avatar;
            }

            public void setAvatar(Object avatar) {
                this.avatar = avatar;
            }

            public int getGroup() {
                return group;
            }

            public void setGroup(int group) {
                this.group = group;
            }

            public String getCreated_at() {
                return created_at;
            }

            public void setCreated_at(String created_at) {
                this.created_at = created_at;
            }
        }

        public static class ProductBean {
            /**
             * name : Ace连帽卫衣
             * cover : {"host":"https://static.nfangxu.com/","path":"images/bg-07.jpg"}
             * attribute : ["橙色","L"]
             */

            private String name;
            private CoverBean cover;
            private List<String> attribute;

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public CoverBean getCover() {
                return cover;
            }

            public void setCover(CoverBean cover) {
                this.cover = cover;
            }

            public List<String> getAttribute() {
                return attribute;
            }

            public void setAttribute(List<String> attribute) {
                this.attribute = attribute;
            }

            public static class CoverBean {
                /**
                 * host : https://static.nfangxu.com/
                 * path : images/bg-07.jpg
                 */

                private String host;
                private String path;

                public String getHost() {
                    return host;
                }

                public void setHost(String host) {
                    this.host = host;
                }

                public String getPath() {
                    return path;
                }

                public void setPath(String path) {
                    this.path = path;
                }
            }
        }
    }
}
